package servlet.filter;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class KorParamServlet2 extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    
  
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		doPost(request,response);
		
	}

	
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		String [] chk = request.getParameterValues("chk");
		//chk - null : chk로 넘어온 요청파라미터가 없는 경우.
		System.out.println("KorParamServlet2.service()");
		for(String c : chk){
			System.out.println(c);
		}
	}

}
